package com.moto.entity;

import com.baomidou.mybatisplus.annotation.*;

import java.io.Serializable;
import java.time.LocalDateTime;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;
import org.apache.ibatis.annotations.Param;

/**
 * <p>
 * 摩托车品牌表
 * </p>
 *
 * @author hyf
 * @since 2023-08-29
 */
@Getter
@Setter
@TableName("car_brand")
@ApiModel(value = "CarBrand对象", description = "摩托车品牌表")
public class CarBrand implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty("品牌id")
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty("品牌名")
    private String carBrandName;

    @ApiModelProperty("品牌首字母")
    private String init;

    @ApiModelProperty("品牌照片")
    private String photo;

    @JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd")
    @ApiModelProperty("修改时间")
    private LocalDateTime create_time;

    @ApiModelProperty("账号状态 正常:1，删除: 0")
    @TableLogic(value = "1", delval = "0")
    private Integer isDelete;
}
